<!DOCTYPE html>
<html>

<head>
    <title>日报资讯</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/travel.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css">
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>

    <script>
        $(function () {
            //获取日报id
            var params = getParams();
            //发送ajax请求
            $.get(baseUrl + "/news/" + params.id, function (data) {
                console.log(data);
                $(".newsDetail").renderValues(data);
            });

            //资讯
            $("messageBtn").click(function () {
                window.location.href = "/NewsMessage.html?id=" + params.id
            })

            //权威官方
            $("officialBtn").click(function () {
                window.location.href = "/NewsOfficial.html?id=" + params.id
            })

            //评论
            $("#commentBtn").click(function () {
                window.location.href = "/mine/dailyNewsComment.html?id=" + params.id
            })

        });

    </script>
</head>

<body>

<div class="newsDetail">
    <div>
        <a href="javascript:history.go(-1);" style="position: absolute;top: 10px;left: 22px;">
            <span><i class="fa fa-chevron-left fa-2x" style="color: white;"></i></span>
        </a>
        <img render-src="coverUrl">

        <div class="container">
            <div class="row typeRow">
                <div class="col-4">
                    <span id="messageBtn">
                        <i class="fa fa-commenting-o commentBtn" style="color: #479eff;font-size: 15px"></i>
                        <a class="commentBtn">资讯</a>
                    </span>
                </div>
                <div class="col-4">
                    <span id="officialBtn">
                        <i class="fa fa-commenting-o commentBtn" style="color: #479eff;font-size: 15px"></i>
                        <a class="commentBtn">权威官方</a>
                    </span>
                </div>
                <div class="col-4">
                    <span id="commentBtn">
                        <i class="fa fa-commenting-o commentBtn" style="color: #479eff;font-size: 15px"></i>
                        <a class="commentBtn">评论</a>
                    </span>
                </div>
            </div>
            <div class="detail">
                <h2 class="title" render-html="title"></h2>
                <h2 class="title" render-html="releaseTime"></h2>
                <div class="content" render-html="newsContent.content"></div>
            </div>
            <hr/>

        </div>
    </div>
</div>

</body>

</html>